package cn.fresh.xuanyuan.module.system.model.form;

import cn.fresh.xuanyuan.framework.common.validation.group.AddGroup;
import cn.fresh.xuanyuan.framework.common.validation.group.UpdateGroup;
import cn.fresh.xuanyuan.module.system.model.request.WXTemplateDataMap;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AddWXTemplateConfigForm {

    @NotNull(message = "ID不能为空", groups = UpdateGroup.class)
    private Integer id;

    @NotBlank(message = "小程序APPID不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String appId;

    @NotBlank(message = "模板ID不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String templateId;

    @NotNull(message = "模板内容配置不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private List<WXTemplateDataMap> data;

    private String remark;
}
